#!/bin/bash
echo "=== 修复包含路径 ==="

cd src

# 修复常见的路径问题
echo "修复configmanager路径..."
find . -name "*.cpp" -o -name "*.h" | xargs sed -i 's|../../plugins/configmanager_common/include/|../plugins/configmanager_common/include/|g' 2>/dev/null

echo "修复其他可能的路径..."
find . -name "*.cpp" -o -name "*.h" | xargs sed -i 's|../../../plugins/|../plugins/|g' 2>/dev/null
find . -name "*.cpp" -o -name "*.h" | xargs sed -i 's|../../sdk/|../sdk/|g' 2>/dev/null

echo "修复完成"
